//
//  XJHAdapter.swift
//  PublicPod
//
//  Created by 许俊华 on 2021/9/8.
//

import Foundation
import UIKit

// 屏幕宽度
public let SCREEN_WIDTH:CGFloat = UIScreen.main.bounds.width
// 屏幕高度
public let SCREEN_HEIGHT:CGFloat = UIScreen.main.bounds.height

// 状态栏高度
public let STATUSTBA_HEIGHT:CGFloat = UIApplication.shared.statusBarFrame.size.height
// 是否是phonex
public let ISPHONEX = (STATUSTBA_HEIGHT > 20.0 ? true : false)
// 导航栏高度
public let NAVIGATIONBAR_HEIGHT:CGFloat = STATUSTBA_HEIGHT + 44.0
// 底部安全域高度
public let BOTTOMSAFEAREA_HEIGHT:CGFloat = (ISPHONEX ? 34.0 : 0.0)
// 底部Tabbar高度
public let TABBAR_HEIGHT:CGFloat = BOTTOMSAFEAREA_HEIGHT + 49.0
// 屏幕比例
public let SCREEN_RATIO:CGFloat = SCREEN_HEIGHT / 667.0
public func SCREEN_RATIO(param:CGFloat) -> CGFloat {
    return param*SCREEN_RATIO
}
